lm75_sources = [
    'lm75.cpp',
    'lm75_abi.cpp',
]  + chip_interface_sources

lm75_lib = shared_library(
    'Lm75',
    lm75_sources, 
    include_directories: [include_dirs, chip_inc, '..', '../..', '../../internal/', '../../internal/chip'],
    dependencies: [internal_dep, libmcpp_deps],
    name_prefix: 'lib',
    name_suffix: 'so',
    install: true,
    install_dir: drivers_install_dir,
)

lm75_dep = declare_dependency(
    link_with: lm75_lib,
    dependencies: [internal_dep, libmcpp_deps],
)

if build_tests
  custom_target(
    'copy_libLm75',
    output: 'copy_libLm75',
    command: ['cp', lm75_lib.full_path(), drivers_install_dir],
    depends: lm75_lib,
    build_by_default: true,
  )
endif 